package aopDemo;//service层

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class CommentServiceImpl {//目标对象

	@Value("王磊")
	String userName;

	public void postComment(String msgString) {//连接点
		System.out.println(userName+"正在发表评论："+msgString);
	}

}
